<?php

use common\helpers\Url;
use yii\helpers\Html;

$remoteUrl = Url::attach($model->$attribute);
?>
<?= Html::beginTag('div', $htmlOptions) ?>
<?= Html::button('选择文件', ['id' => 'selectfiles', 'class' => 'btn btn-sm btn-info upload-new-photo']) ?>
<?= Html::button('上传', ['id' => 'postfiles', 'class' => 'btn btn-sm btn-success upload-new-photo']) ?>
<div id="preview-container"></div>
<?= Html::endTag('div') ?>
